package com.xxh.springclouddemo.consumer.interfaceApi;

import com.xxh.springclouddemo.common.pojo.Student;


import com.xxh.springclouddemo.consumer.service.OpenfeignApiFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * @Author xxh
 * @Date 2024/4/14 15:32
 */
@FeignClient(value = "springclouddemo-openfeignapi",fallbackFactory = OpenfeignApiFallback.class)
@RequestMapping("/openFeign")
public interface OpenfeignApi {


    @RequestMapping("/getStudent")
    public List<Student> getStudent();






}
